home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13558 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  844 b 

  1. Path: news.cybercom.net!usenet
  2. From: nield@cybercom.net (John Nield)
  3. Newsgroups: comp.lang.c
  4. Subject: How to use assert( )
  5. Date: Mon, 08 Apr 1996 21:22:15 GMT
  6. Organization: Cyber Access Internet Services (617) 396-0491
  7. Message-ID: <4kc3k7$dur@orion.cybercom.net>
  8. Reply-To: nield@cybercom.net
  9. NNTP-Posting-Host: dial1-3.cybercom.net
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. I am interested in the use of the assert() library function (macro?).
  13. Neither the FAQ, nor K&R seems to have anything about it. Could
  14. someone help me with a breif explanation of its uses and mabye some
  15. example code? 
  16.  
  17. I'm just starting my first project big enough to split among many
  18. people, and from the vague explanations I've heard, assert is supposed
  19. to be a usefull way to cause errors when someone passes your code bad
  20. values. How do I do this?
  21.  
  22. thanx,
  23.  
  24. ;john nield
  25.  
  26.